package treeTest;

public class BinaryNode {
	public char data;
	public BinaryNode left;
	public BinaryNode right;
	
	public BinaryNode(char data) {
		this.data=data;
		left=right=null;
	}
	
	public String toString() {
		return this.data+"";
	}
	
	public boolean isLeaf() {
		if(left==null&&right==null)
			return true;
		else 
			return false;
	}
}
